package com.aspose.cells;

import java.util.ArrayList;

class zaen {
   Cell a;
   int b = 0;
   int c = 1;
   int d = 1;
   boolean e = true;
   int f = -1;
   Style g = null;
   Hyperlink h = null;
   boolean i = false;
   boolean j = false;
   boolean k = false;
   boolean l = false;
   int m = -1;
   ArrayList n = null;
   Border o = null;
   Border p = null;
   private zaej r = null;
   private zaem s = null;
   private int t = -1;
   private double u = -1.0D;
   String q = null;

   zaen(zaej var1) {
      this.r = var1;
      this.s = var1.e();
   }

   boolean a() {
      return this.b == 0 || this.n != null || this.d > 1;
   }

   boolean b() {
      if (this.g == null) {
         return true;
      } else {
         String var1 = this.g.s();
         return this.g.r() <= 0 && (var1 == null || var1.length() == 0);
      }
   }

   boolean c() {
      return this.h != null || this.q != null;
   }

   double d() {
      if (this.u < 0.0D) {
         this.u = 0.0D;
         int var1 = this.r.d() + this.d;

         int var2;
         for(var2 = this.r.d(); var2 < var1; ++var2) {
            this.u += this.s.a().getCells().getRowHeight(var2);
         }

         if (this.a != null) {
            var2 = this.a.getStyle().getBorders().getByBorderType(4).getLineStyle();
            int var3 = this.a.getStyle().getBorders().getByBorderType(8).getLineStyle();
            int var4 = zaff.g(var2) + zaff.g(var3);
            this.u -= zaff.b(96, var4);
         }
      }

      return this.u;
   }

   int e() {
      if (this.t < 0) {
         this.t = this.s.a(this.b, this.b + this.c);
      }

      return this.t;
   }
}
